package com.lzh.mapper;

import com.lzh.pojo.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Reborn
 * @since 2020-06-15
 */
@Repository
public interface StudentMapper extends BaseMapper<Student> {

    @Select("select * from student where c_id=#{cid}")
    List<Student> selectStuBycid(int cid);

    Student selectStuByid(int id);
}
